package com.ruoyi.member.service;



import com.ruoyi.common.core.domain.entity.MemberUser;
import com.ruoyi.common.core.domain.MemberUserUpdateReqVo;

import java.util.List;

public interface IMemberUserService  {
    public List<MemberUser> selectAppUserList(MemberUser appUser);
    public MemberUser selectAppUserByUserId(Long userId);
    public long deleteAppUserByUserIds(Long[] userIds);


    public long deleteAppUserByUserId(Long userId);

    /**
     * 新增用户
     * @param appUser
     * @return
     */
    long insertAppUser(MemberUser appUser);

    /**
     * 通过用户账号查询用户
     *
     * @param openId 用户账号
     * @return 用户对象信息
     */
    MemberUser selectAppUserByOpenId(String openId);
    MemberUser selectAppUserByUserName(String userName);

    /**
     * 用户注册
     * @param appUser
     * @return
     */
    Boolean regAppUser(MemberUser appUser);
    /**
     * 修改用户信息
     *
     * @param appUser 用户信息
     * @return 结果
     */
    long updateAppUser(MemberUser appUser);

    /**
     * 密码校验
     *
     * @param password 明文
     * @param salt     盐
     * @param hashPwd  密文
     * @return boolean
     */
    boolean checkPassword(String password, String salt, String hashPwd);

    boolean apiUpdateAppUser(MemberUserUpdateReqVo reqVo);


}
